//
//  DLUserManager.h
//  delongzhitou
//
//  Created by Mr.Wang on 2018/11/22.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#import <Foundation/Foundation.h>
@class DLBaseVC;
@class DLUserInfoModel;
NS_ASSUME_NONNULL_BEGIN

@interface DLUserManager : NSObject

+ (instancetype)currentUser;

@property (nonatomic, assign) BOOL isLogin;

@property (nonatomic, assign) BOOL isRequestUserInfo;

@property (nonatomic, assign) BOOL isTokenAvailable;

/**
 聊天页面-上一条消息是否是发送的语音消息，如果是，后台返回的文字消息默认要读出来
 */
@property (nonatomic, assign) BOOL isLastMsgVoice;


/**
 聊天页面-当前点击这条消息的文字是什么
 */
@property (nonatomic, copy) NSString *currentSpeakingText;


/**
 首页页面-当前点击这条消息的文字是什么
 */
@property (nonatomic, copy) NSString *homeCurrentSpeakingText;



@property (nonatomic, strong) DLUserInfoModel *userInfoModel;

@property (nonatomic, strong) DLBaseVC *lastVc;

@property (nonatomic, assign) NSInteger currentTabIndex;



//登录的时候保存token
- (void)saveLoginTokenDict:(NSDictionary *)dict;

//保存个人信息数据   里面内置了token
- (void)analyzeUserDataWithDict:(NSDictionary *)dict;

- (void) userLogin;

- (void) userLogout;

@end

NS_ASSUME_NONNULL_END
